/**
 *@description 提示信息
 *@author yhw
 */
import {
	notification
} from 'antd';

notification.config({
	top: 30,
	duration: 5,
});

export async function success(desc) {
	return notification.success({
		message: '温馨提示',
		description: desc || '操作成功！'
	});
}

export default function error(desc) {
	return notification.error({
		message: '错误提示',
		description: desc || '请检查接口情况！'
	});
}